<template>
  <div class="about">
    <h2>大家好</h2>
  </div>
</template>

<script lang="ts" setup name="About">
import { onMounted,onUnmounted } from 'vue';
// 通过点击导航栏，视觉效果上消失的组件，默认是卸载了，需要的时候再挂载
onMounted(()=>{
  console.log('挂载了')
})
onUnmounted(()=>{
  console.log('卸载了');
})
</script>

<style scoped>
.about{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: aqua;
  font-size: 18px;
}
</style>